set(SOURCE_DIR_MAIN 
    "main.cpp"
    )   

set(INCLUDE_DIR_MAIN 
        "."
        src
        utils
        cmd_user
        )

file(GLOB APP_FILES src/*.cpp)
list(APPEND SOURCE_DIR_MAIN ${APP_FILES})

file(GLOB UTILS_FILES utils/*.cpp)
list(APPEND SOURCE_DIR_MAIN ${UTILS_FILES})

file(GLOB CMD_FILES cmd_user/*.cpp)
list(APPEND SOURCE_DIR_MAIN ${CMD_FILES})


idf_component_register(SRCS ${SOURCE_DIR_MAIN}
                        INCLUDE_DIRS ${INCLUDE_DIR_MAIN})

